2909894f26e0f091b8b580240bb107ea7181ed1f,patching/src/main/java/org/jboss/as/patching/management/LocalShowHistoryHandler.java,LocalShowHistoryHandler,execute,#OperationContext#ModelNode#,51
Before Change
@Override
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
context.acquireControllerLock();
// Setup
final InstallationManager installationManager = (InstallationManager) context.getServiceRegistry(false).getRequiredService(InstallationManagerService.NAME).getValue();
try {
final PatchableTarget.TargetInfo info = installationManager.getIdentity().loadTargetInfo();
final InstalledImage installedImage = info.getDirectoryStructure().getInstalledImage();
After Change
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
// Acquire the lock and check the write permissions for this operation
final ServiceRegistry registry = context.getServiceRegistry(true);
final InstallationManager installationManager = (InstallationManager) registry.getRequiredService(InstallationManagerService.NAME).getValue();
try {
final PatchableTarget.TargetInfo info = installationManager.getIdentity().loadTargetInfo();